import type { App } from "vue";
import { SvgIcon } from "@/components/Icon";
import 'virtual:svg-icons-register'

const compList = [SvgIcon];

export function registerGlobComp(app: App) {
  compList.forEach(comp => {
    app.component(comp.name || comp.displayName, comp);
  });

  // 批量导入 svg 目录下所有 svg 文件
  import.meta.glob('./svg/*.svg', { eager: true })

}
